home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 - Inside Community Club / Acrobat Pro 6 D.bin / installer / Data1.cab / HTML2PDF.api / EXVW / 4506 < prev    next >
Encoding:
Text File  |  2003-05-15  |  4.7 KB  |  132 lines

  1. gStrInputEncoding        = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/InputEncoding';
  2. gStrDefault                = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/Default';
  3. gStrFontSettings        = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/FontSettings';
  4. gStrLanguageScript        = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/LanguageScript';
  5. gStrChange                = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/Change';
  6. gStrFontSize            = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/FontSize';
  7. gStrTextFont            = '$$$/Dialogs/HTML2PDF/TextSettings/Font/TextFont';
  8. gStrTextFontWAcel        = '$$$/Dialogs/HTML2PDF/TextSettings/Font/TextFontWAcel';
  9. gStrFontEmbedding        = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/FontEmbedding';
  10. gStrEmbedFonts            = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/EmbedFonts';
  11.  
  12. gIndentWidth  = gGap;
  13.  
  14. gChangeButtonWidth = gGap + zstring_width( zstring: gStrChange ) + gGap;
  15.  
  16. gSpaceBetweenPopupAndButton = gMarginWidth + (gGap * 2);
  17.  
  18. gLangaugeScriptPopupWidth = 
  19.     max    ( zstring_width( zstring: '$$$IDS_LANG_SCRIPT_WESTERN' )
  20.         , zstring_width( zstring: '$$$IDS_LANG_SCRIPT_JAPANESE' )
  21.         , zstring_width( zstring: '$$$IDS_LANG_SCRIPT_CHINESE_TRAD' )
  22.         , zstring_width( zstring: '$$$IDS_LANG_SCRIPT_CHINESE_SIMP' )
  23.         , zstring_width( zstring: '$$$IDS_LANG_SCRIPT_KOREAN' )
  24.         );
  25.  
  26. gDefaultEncodingPopupWidth = 
  27.     max    ( zstring_width( zstring: '$$$IDS_ENCODING_WESTERN' )
  28.         , zstring_width( zstring: '$$$IDS_ENCODING_AUTO_JAPANESE' )
  29.         , zstring_width( zstring: '$$$IDS_ENCODING_AUTO_CHINESE_TRAD' )
  30.         , zstring_width( zstring: '$$$IDS_ENCODING_AUTO_CHINESE_SIMP' )
  31.         , zstring_width( zstring: '$$$IDS_ENCODING_AUTO_KOREAN' )
  32.         , zstring_width( zstring: '$$$IDS_ENCODING_EUCJP' )
  33.         , zstring_width( zstring: '$$$IDS_ENCODING_SHIFTJIS' )
  34.         , zstring_width( zstring: '$$$IDS_ENCODING_JIS' )
  35.         , zstring_width( zstring: '$$$IDS_ENCODING_EUCCN' )
  36.         , zstring_width( zstring: '$$$IDS_ENCODING_GBK' )
  37.         , zstring_width( zstring: '$$$IDS_ENCODING_EUCTW' )
  38.         , zstring_width( zstring: '$$$IDS_ENCODING_BIG5' )
  39.         , zstring_width( zstring: '$$$IDS_ENCODING_EUCKR' )
  40.         , zstring_width( zstring: '$$$IDS_ENCODING_ISO2022KR' )
  41.         , zstring_width( zstring: '$$$IDS_ENCODING_JOHAB' )
  42.         , ( gLangaugeScriptPopupWidth + gSpaceBetweenPopupAndButton + gChangeButtonWidth )
  43.         );
  44.  
  45. gLangaugeScriptPopupWidth    = gDefaultEncodingPopupWidth 
  46.                             - gSpaceBetweenPopupAndButton 
  47.                             - gChangeButtonWidth;
  48.  
  49. gFontSettingsTextWidth = 
  50.     max    ( zstring_width( zstring: gStrLanguageScript )
  51.         , zstring_width( zstring: gStrDefault )
  52.         , ( zstring_width( zstring: gStrTextFont ) + gIndentWidth )
  53.         ) + max_char_width();
  54.  
  55. gFaceNameEditWidth    = gDefaultEncodingPopupWidth + gMarginWidth + (gGap * 2);
  56.  
  57. gFontSizeEditWidth = max_char_width() * 2;
  58.  
  59. dialog( )
  60. {
  61.     view( align_children: align_left )
  62.     {
  63.         cluster( name: gStrInputEncoding )
  64.         {
  65.             view( align_children: align_row )
  66.             {
  67.                 view( align_children: align_row )
  68.                 {
  69.                     view( align_children: align_left, width: gFontSettingsTextWidth )
  70.                     {
  71.                         static_text( item_id: 'st01', name: gStrDefault, next_tab: 'inec' );
  72.                     }
  73.                     view( align_children: align_right )
  74.                     {
  75.                         popup( item_id: 'inec', width: gDefaultEncodingPopupWidth, next_tab: 'st02' );
  76.                     }
  77.                 }
  78.             }
  79.         }
  80.         cluster( name: gStrFontSettings )
  81.         {
  82.             view( align_children: align_row )
  83.             {
  84.                 view( align_children: align_left, width: gFontSettingsTextWidth )
  85.                 {
  86.                     static_text( item_id: 'st02', name: gStrLanguageScript, next_tab: 'lngs' );
  87.                 }
  88.                 view( align_children: align_left )
  89.                 {
  90.                     popup( item_id: 'lngs', width: gLangaugeScriptPopupWidth, next_tab: 'chag' );
  91.                 }
  92.                 view( alignment: align_fill, align_children: align_right )
  93.                 {
  94.                     button( item_id: 'chag', name: gStrChange, next_tab: 'st03' );
  95.                 }
  96.             }
  97.             view( align_children: align_row )
  98.             {
  99.                 view( align_children: align_row, width: gFontSettingsTextWidth )
  100.                 {
  101.                     gap( width: gIndentWidth );
  102.                     static_text( item_id: 'st03', name: gStrTextFont, next_tab: 'btfn' );
  103.                 }
  104.                 view( align_children: align_left )
  105.                 {
  106.                     edit_text( item_id: 'btfn', readonly: true, width: gFaceNameEditWidth, next_tab: 'st04' );
  107.                 }
  108.             }
  109.         }
  110.         cluster( name: gStrFontSize )
  111.         {
  112.             view( align_children: align_row )
  113.             {
  114.                 view( align_children: align_left, width: gFontSettingsTextWidth )
  115.                 {
  116.                     static_text( item_id: 'st04', name: gStrTextFontWAcel, next_tab: 'btps' );
  117.                 }
  118.                 view( align_children: align_left )
  119.                 {
  120.                     edit_text( item_id: 'btps', PopupEdit: true, numeric: true, width: gFontSizeEditWidth, next_tab: 'embp' );
  121.                 }
  122.             }
  123.         }
  124.         cluster( name: gStrFontEmbedding )
  125.         {
  126.             view( align_children: align_row )
  127.             {
  128.                 check_box(item_id: 'embp', name: gStrEmbedFonts );
  129.             }
  130.         }
  131.     }
  132. }